#pragma once
#include "LinkedList.h"

template<class T>
class AdjacentItem: public LinkedItem<T>{
public:
	AdjacentItem<T>** links;
	int num_link;
	void AddLink(AdjacentItem<T>& link);
};

template<class T>
class Adjacency: public LinkedList<T>{
public:
	Adjacency();
	void Link(AdjacentItem<T>& m1, T& m2);
	void GetAdjacents(const T& member, int* num_adjacent, T* adjacent);
};
